
<%@page import="com.dts.project.dao.MobileCardSalesDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.MobileCardSalesForm"%> 
 
 <form action="DeleteMobileCardSales.jsp">
 <%if(request.getParameter("status")!=null){ %>
<%=request.getParameter("status") %><%} %>
 <%
try
{
 MobileCardSalesDao dao=new MobileCardSalesDao();
 CoreList cl=dao.ViewMobileCardSales();
 Enumeration en=cl.elements();
 %>
 <table align="center" border=1>
 <tr><td><input type=checkbox name="TypeId"></td>
 <td>SaleDate </td>      
<td>CardId</td>         
<td>OperatorId</td>
<td>UserId</td></tr>
<%
while(en.hasMoreElements())
{
MobileCardSalesForm form=(MobileCardSalesForm)en.nextElement();
%>
<tr><td><input type=checkbox name="TypeId" value="<%=form.getSaleId() %>"></td>
<td><%=form.getSaleDate() %></td>
<td align="center"><a href="UpdateMobileCardSales.jsp?Id=<%=form.getSaleId() %>"><%=form.getCardId() %></a></td>
<td align="center"><%=form.getOperatorId() %></td>
<td align="center"><%=form.getUserId() %></td></tr>
<%}}catch(Exception e)
{
e.printStackTrace();
}
 %>         
 </table>
 <center><input type=submit name="Delete" value="Delete"></center>
 </form>